package com.csw.android.player.base

import android.net.Uri

/**
 * 媒体信息
 */
class MediaInfo(
    val id: String,//媒体id，作为判断是否同一个播放源的唯一id
    val mediaUri: Uri,//媒体资源路径
    val coverUri: Uri,//封面图路径


) {

    override fun equals(other: Any?): Boolean {
        if (this === other) return true
        if (javaClass != other?.javaClass) return false
        other as MediaInfo
        if (id != other.id) return false
        return true
    }

    override fun hashCode(): Int {
        return id.hashCode()
    }
}